<layout name="page" />
<block name="content">
	{:widget('page_header/simple',array('name'=>'编辑事项'))}
	<div class="frame">
		<form method='post' id="form_data" name="form_data" enctype="multipart/form-data"   >
			<input type="hidden" id="id" name="id" value="{$vo.id}">
			<input type="hidden" id="ajax" name="ajax" value="0">
			<input type="hidden" id="opmode" name="opmode" value="edit">
			
				<label class="input-label" for="name">标题*：</label>
				
					<input value="{$vo.name}" class="input" type="text" id="name" name="name" check="required" info="请输入标题">
				</div>
			</div>

			
				<label class="input-label" for="end_date">结束：</label>
				
					<input  type="text" id="end_date" name="end_date" readonly="readonly" class="input input-date" value="{$vo.end_date}" readonly="readonly">
				</div>
			</div>
			
				<label class="input-label" >优先级：</label>
				<div class="input-block col-16">
					<select name="priority" id='priority' class="input">
						<option value="">请选择优先级</option>
						<option value="3">高</option>
						<option value="2">普通</option>
						<option value="1">低</option>
					</select>
				</div>
			</div>
			<div class=""></div>
			
				<label class="input-label" for="name">附件：</label>
				
					{:widget('file_upload/edit',array('add_file'=>$vo['add_file']))}
				</div>
			</div>
			
				<label class="input-label">内容：</label>
				
					<textarea  class="editor" id="content" name="content" style="width:100%;height:200px;">{$vo.content}</textarea>
				</div>
			</div>
			
				<label class="input-label"></label>
				
					<a class="btn btn-normal" onclick="save()">保存</a>
					<a  class="btn btn-return" onclick="go_return_url();">取消</a>
				</div>
			</div>
		</form>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global', 'editor'], function() {
			var $ = layui.jquery;
			
			$("#priority").val("{$vo.priority}");
			$('#btn_save').on('click', function() {
				send_form('form_data', "{:url('save')}", '', function() {

				});
			});
		});
	</script>
</block>